package com.aaa.phone.service.postionservice;

import com.aaa.entity.BatteryPosition;
import com.aaa.entity.Position;
import com.aaa.web.commons.Result;

import java.util.List;
import java.util.Map;

/***
 * Demo class
 *
 *  @author kevin
 *  @date 2018/12/17 20:34:33
 *
 */
public interface PositionService {

    /**
     * @Description: 获取充电桩坐标
     * @Param:
     * @return:  List<BatteryPosition>
     * @Author: Kevin Jia
     * @Date: 2018/12/12
     * @Time: 20:12:11
     */
    List<BatteryPosition> getPosition(Map<String, Position> position);

    /**
     * @Description: 获取服务手机
     * @Param: phone
     * @return: String
     * @Author: Kevin Jia
     * @Date: 2018/12/26
     * @Time: 9:22
     */
    Map getServicePhone(Map<String,String> phone);

    /**
     * @Description: 更换电瓶操作
     * @Param: addName
     * @return: Result
     * @Author: Kevin Jia
     * @Date: 2018/12/26
     * @Time: 9:22
     */
    Result changeBatteryCount(String pid);


    /**
     * @Description: 查询当前站点可用电瓶数量
     * @Param: pid
     * @return: Result
     * @Author: Kevin Jia
     * @Date: 2018/12/28
     * @Time: 18:54
     */
    Result getBatteryQuantity(String pid);

    /**
     * @Description: 交易
     * @Param: telephone,money,pid
     * @return: Result
     * @Author: Kevin Jia
     * @Date: 2018/12/28
     * @Time: 19:35
     */
    Result toDeal(String telephone, String money,String pid);
}
